package com.spring.dao.impl;

import javax.sql.DataSource;

import org.springframework.jdbc.core.JdbcTemplate;

import com.spring.dao.UserDao;

public class UserDaoImpl extends JdbcTemplate implements UserDao{

	public UserDaoImpl(DataSource dataSource) {
		super(dataSource);
	}

	@Override
	public void saveUser() {
		String sql = "insert into tb_user(id,username,birthday,sex,address) values(null,'武器',null,'2','北京市')" ;
		this.execute(sql) ;
	}

}
